package com.myown.constant;

/**
 * 通用常量 <p>
 *
 * @author lincky
 * @version v1.0.0
 */
public class ConstantInfo {

    /**
     * 路径常量 <p>
     */
    public static class Path {
        public static String ABSOLUTE_ROOT;

        public final static String RELATIVE_PATH_404 = "/page/404.html";
        public final static String RELATIVE_PATH_LOGIN = "http://localhost:8080/ssm/page/singleLogin.jsp";
    }

    /**
     * 账户常量 <p>
     */
    public interface Account {
        /**
         * 全局登录用户登记
         */
        String HTTP_GLOBAL_ACCOUNT = "global_user_account";

        String THE_OTHER_LOGONED = "islogoned";
    }

    /**
     * 绝对路径初始化 <p>
     *
     * @param absoluteRoot 项目绝对路径
     */
    public static void pathInit(String absoluteRoot) {
        Path.ABSOLUTE_ROOT = absoluteRoot;
    }
}
